#pragma once
#include "../qbprotocol/include/SSQBModel.h"
#include "../core/dicttool/BondMacroIndex.h"
#include "../bondlib/BondCalendar.h"
#include <qbcalculator/include/SSSingleCalendar.h>
#include <qbcalculator/include/SSSingleInterestRate.h>
#include <qbcalculator/include/SSSingleRawBondFundamentalInfo.h>
#include "tfbondlib.h"

typedef struct{
	time_t m_time;
	float m_spread;
}Spread_t;

S_TFBONDLIB_EXPORT extern void initCalculator();
S_TFBONDLIB_EXPORT extern void calendarConvert(CBondHoliday& info, std::vector<ssCalculator::SSSingleCalendar>& all_calendars);
S_TFBONDLIB_EXPORT extern void macroIndexConvert(CBondMacroData& info, std::vector<ssCalculator::SSSingleInterestRate>& all_rates);
S_TFBONDLIB_EXPORT extern void bondFundamentalInfoConvert(xBondFundamentalInfoList_c& info, std::vector<ssCalculator::SSSingleRawBondFundamentalInfo>& all_info);
